package lambda;

import java.io.File;
import java.io.FileFilter;

public class LambdaDemo_1 {
    public static void main(String[] args) {
        FileFilter fileFilter = new FileFilter() {
            public boolean accept(File pathname) {
                return pathname.getName().contains("o");
            }
        };

        FileFilter fileFilter1 =(File pathname) -> {
                return pathname.getName().contains("o");
        };

        FileFilter fileFilter2 =(pathname) -> {
            return pathname.getName().contains("o");
        };

        FileFilter fileFilter3 =pathname -> {
            return pathname.getName().contains("o");
        };

        FileFilter fileFilter4 =pathname -> pathname.getName().contains("o");
    }
}
